// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
var starter = angular.module('starter', ['ionic','route','directives','filters'])

.run(function($ionicPlatform,$rootScope) {
  $ionicPlatform.ready(function() {
    if(navigator && navigator.splashscreen) {
          navigator.splashscreen.hide();
      }
        
      if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        cordova.plugins.Keyboard.disableScroll(true);
      }
      if (window.StatusBar) {
        StatusBar.styleDefault();
      }
      //禁止横屏
      screen.lockOrientation('portrait-primary');

  });

  //sbb
  // $rootScope.serverIp = "http://192.168.70.5:8080/traffic/";
  // $rootScope.serverIp = "http://192.168.70.6:8080/traffic/";
  $rootScope.serverIp = "http://192.168.70.8:8080/traffic/";
})